/**
 * 
 */
package com.study.facade;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @author Administrator
 * @date 2019年6月23日
 */
@Configuration
@ComponentScan(basePackages = "com.study.facade")
public class BeanConfig {
    public BeanConfig() {
        System.out.println("BeanConfig容器启动初始化。。。");
    }

    //@Bean注解注册bean,同时可以指定初始化和销毁方法
//    @Bean(name="testBean",initMethod="start",destroyMethod="cleanUp")
//    @Scope("prototype")
//    public TestBean testBean() {
//        return new TestBean();
//    }
}